package exam.web.action;

import java.util.List;

import exam.business.service.UserGetListService;
import exam.common.key.KeyUser;
import exam.model.entity.TUserEntity;
import exam.web.action.base.UserActionBase;
/**
 * <p>IndexUserAction</p>
 * 
 * @author Phong
 * @version 19/5/2012
 */
public class IndexUserAction extends UserActionBase {

	private static final long serialVersionUID = 1L;
	
	/**
	 * listUserEntity
	 */
	private List<TUserEntity> tUserEntityList;
	
	public String execute() throws Exception {
		// yeu cau lay danh sach nguoi dung
		UserGetListService userGetListService = new UserGetListService();
		userGetListService.executeService(serviceInfo);
		tUserEntityList = serviceInfo.getList(KeyUser.T_USER_ENTITY_LIST);
		addActionMessage("Danh sách người dùng");
		return SUCCESS;
	}

	public List<TUserEntity> gettUserEntityList() {
		return tUserEntityList;
	}

	public void settUserEntityList(List<TUserEntity> tUserEntityList) {
		this.tUserEntityList = tUserEntityList;
	}
	
	
}
